package util;

import javax.faces.context.FacesContext;

import mbeans.MBGeneral;
import mbeans.MBLogin;

public class FacesContextUtil<F extends MBGeneral> {

	@SuppressWarnings("unchecked")
	public F getClassFromFaces(String className, F clazz) {

		F resultObjext = (F) FacesContext.getCurrentInstance()
				.getExternalContext().getSessionMap().get(className);

		return resultObjext;
	}

}
